<?php
$this->extend('_layouts/default');
?>
<?php $this->block('body');?>
<form class="form-horizontal" method="post" action="<?php echo url(ROUTE_JSON_APP, url_sfparams('chap0','login'));?>">
  <fieldset>
    <legend>用戶登陆</legend>
    <div class="control-group">
      <label class="control-label" for="username">用戶名</label>
      <div class="controls">
        <input type="text" class="input-xlarge" id="username" name="username" value="<?php echo G::val($_REQUEST,'username')?>">
      </div>
    </div>
    <div class="control-group">
      <label class="control-label" for="password">密码</label>
      <div class="controls">
        <input type="password" class="input-xlarge" id="password" name="password" value="<?php echo G::val($_REQUEST,'password')?>">
      </div>
    </div>
    <div class="form-actions">
      <button type="submit" class="btn btn-primary">登入</button>
    </div>
  </fieldset>
</form>

<?php $this->endblock();?>